/**
 *====================================================
 * 文件名称: WarningSchemeEntity.java
 * 修订记录：
 * No    日期				作者(操作:具体内容)
 * 1.    2016年6月2日			chenxy(创建:创建文件)
 *====================================================
 * 类描述：(说明未实现或其它不应生成javadoc的内容)
 */
package com.yuexunit.finance.project.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yuexunit.finance.project.entity.lexicon.FrequencyEnum;
import com.yuexunit.finance.project.entity.lexicon.RelationTypeEnum;
import com.yuexunit.finance.project.entity.lexicon.TreatmentMethodEnum;
import com.yuexunit.finance.project.entity.lexicon.WarningFactorEnum;
import com.yuexunit.finance.project.entity.lexicon.WarningValueTypeEnum;

/**
 * @ClassName: WarningSchemeEntity
 * @Description: TODO(预警方案)
 * @author chenxy
 * @date 2016年6月2日 下午3:39:58
 */
@Entity
@Table(name = "FIN_WARNING_SCHEME")
public class WarningSchemeEntity {

	/** 预警方案ID */
	@Id
	@GeneratedValue
	@Column(name = "SCHEME_ID")
	private Long schemeId;

	/** 方案名称 */
	@Column(name = "SCHEME_NAME")
	private String schemeName;

	/** 客户类别(会员等级) */
	@Column(name = "MEMBER_GRADE_ID")
	private Long memberGradeId;

	/** 等级名称 */
	@Column(name = "GRADE_NAME")
	private String gradeName;

	/** 企业信息ID */
	@Column(name = "ENTERPRISE_ID")
	private Long enterpriseId;

	/** 企业名称 */
	@Column(name = "ENTERPRISE_NAME")
	private String enterpriseName;

	/** 预警因素 0:商品价格/1:赎货时效/2:处置时效 */
	@Column(name = "FACTOR")
	private WarningFactorEnum factor;

	/** 数值类型 0:数值/1:倍数 */
	@Column(name = "VALUE_TYPE")
	private WarningValueTypeEnum valueType;

	/** 关系类型 0:相等/1:高于/2:低于 */
	@Column(name = "RELATION_TYPE")
	private RelationTypeEnum relationType;

	/** 标准值 */
	@Column(name = "STANDARD")
	private BigDecimal standard;

	/** 预警值 */
	@Column(name = "WARNING")
	private BigDecimal warning;

	/** 处理方式 0:全部/1:短信/2:APP/3:网页 */
	@Column(name = "TREATMENT_METHOD")
	private TreatmentMethodEnum treatmentMethod;

	/** 处理频度 0:全部/1:小时/2:天/3:月 */
	@Column(name = "FREQUENCY")
	private FrequencyEnum frequency;

	/** 计算公式 */
	@Column(name = "FORMULA")
	private String formula;

	/** 生成时间 */
	@Column(name = "CREATE_DT")
	private Date createDateTime;

	public Long getSchemeId() {
		return schemeId;
	}

	public void setSchemeId(Long schemeId) {
		this.schemeId = schemeId;
	}

	public String getSchemeName() {
		return schemeName;
	}

	public void setSchemeName(String schemeName) {
		this.schemeName = schemeName;
	}

	public Long getMemberGradeId() {
		return memberGradeId;
	}

	public void setMemberGradeId(Long memberGradeId) {
		this.memberGradeId = memberGradeId;
	}

	public String getGradeName() {
		return gradeName;
	}

	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}

	public Long getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(Long enterpriseId) {
		this.enterpriseId = enterpriseId;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public WarningFactorEnum getFactor() {
		return factor;
	}

	public void setFactor(WarningFactorEnum factor) {
		this.factor = factor;
	}

	public WarningValueTypeEnum getValueType() {
		return valueType;
	}

	public void setValueType(WarningValueTypeEnum valueType) {
		this.valueType = valueType;
	}

	public RelationTypeEnum getRelationType() {
		return relationType;
	}

	public void setRelationType(RelationTypeEnum relationType) {
		this.relationType = relationType;
	}

	public BigDecimal getStandard() {
		return standard;
	}

	public void setStandard(BigDecimal standard) {
		this.standard = standard;
	}

	public BigDecimal getWarning() {
		return warning;
	}

	public void setWarning(BigDecimal warning) {
		this.warning = warning;
	}

	public TreatmentMethodEnum getTreatmentMethod() {
		return treatmentMethod;
	}

	public void setTreatmentMethod(TreatmentMethodEnum treatmentMethod) {
		this.treatmentMethod = treatmentMethod;
	}

	public FrequencyEnum getFrequency() {
		return frequency;
	}

	public void setFrequency(FrequencyEnum frequency) {
		this.frequency = frequency;
	}

	public String getFormula() {
		return formula;
	}

	public void setFormula(String formula) {
		this.formula = formula;
	}

	public Date getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}

}
